package com.google.code.coma.gui;

import javafx.scene.control.ListView;

import java.util.List;

/**
 * A DataProvider is responsible for populating business data. Therefore an ui component can be
 * bound to a DataProvider.
 *
 * @author Dominik Strasser, dominikstr@gmail.com
 */
public interface DataProvider<T> {
	/**
	 * With this method the ui component (in this case only a ListView) can be bound to the data provider
	 *
	 * @param listView the ui component
	 */
	public void bind(ListView<T> listView);

	/**
	 * Shutdown of this dataprovider
	 */
	public void shutdown();
}
